<?php


namespace Part26_SharingElementMode\Code2;


require_once '../../autoload.php';

$extrinsicState = 22;

$f = new FlyweightFactory();
$fx = $f->getFlyWeight('x');
$fx->Operation(--$extrinsicState);

$fy = $f->getFlyWeight('y');
$fy->Operation(--$extrinsicState);

$fz = $f->getFlyWeight('z');
$fz->Operation(--$extrinsicState);

$uf = new UnsharedConcreteFlyweight();
$uf->Operation(--$extrinsicState);